<template>
  <div class="child-box">
    <ul>
      <li>pcolor={{pcolor}} is from Parent</li>
      <li>count={{count}} is from Parent</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "TongxinChild",
  data(){
    return {
    }
  },
  props: {
    pcolor: {
      type: String,
      default: "red"
    },
    count:{
      type: Number,
    }
  },
}
</script>

<style scoped>
.child-box {
  border: 2px solid lawngreen;
  padding: 10px;
  margin-top: 10px;
  border-radius: 2px;
}
</style>
